package org.zero.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.zero.model.User;
import org.zero.mapper.UserMapper;
import org.zero.service.UserService;

/**
 * @author Zero (cnzeropro@qq.com)
 * @date 2021/10/26 11:47
 */
@Service("userService")
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User getById(Integer id) {
        return userMapper.selectByPrimaryKey(id);
    }

}
